<%@ page language="java" contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8"
%><%@include file="/WEB-INF/jsp/include/tags.jspf"
%><html>
<head>
</head>
<body>

<h3>${post.title}</h3>
<div>
${post.contents}
</div>

<div>
<c:forEach var="attachment" items="${post.attachments}">
[${attachment}]<br/>
	<c:if test="${attachment.image}">
	<img src="${url:imgAttachment(attachment)}"/><br/>
	<img src="${url:imgAttachmentSmall(attachment)}"/><br/>
	<img src="${url:imgAttachmentMedium(attachment)}"/><br/>
	<img src="${url:imgAttachmentLarge(attachment)}"/>
	</c:if>
</c:forEach>
</div>
<div>
${post.createdDate}
</div>

<ul>
<c:forEach var="comment" items="${post.comments}">
	<li>${comment.user.username}<br/>
	${comment.contents}</li>
</c:forEach>
</ul>
<form action="/blog/${post.user.username}/${post.id}/comments/create" method="post">
<textarea name="contents"></textarea><br/>
<input type="submit" value="Submit"/>
</form>
</body>
</html>